package com.torchclx.etcdstarter;

import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;

public class Etcd2RedisAdaptor extends RedisTemplate<String, String> {

    private final EtcdValueOperations valueOps;
    public Etcd2RedisAdaptor(EtcdValueOperations valueOps) {
        this.valueOps = valueOps;
    }

    @Override
    public ValueOperations<String, String> opsForValue() {
        return this.valueOps;
    }

    @Override
    public void afterPropertiesSet() {
    }
}
